package com.cyzy.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "message")
public interface MessageService {
    @PostMapping("/message/send")
    String sendMessage(
            @RequestParam("fromUser") String fromUser,
            @RequestParam("toUserid") Integer toUserid,
            @RequestParam("toUser") String toUser,
            @RequestParam("content") String content
    );
}